.bg {
    background:url('/resource/3.jpg') no-repeat fixed;
    background-size:contain;
}